home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / hypercrd / hc2_x / tcprogud.sit / TC Prog Guide / card_49867.txt < prev    next >
Text File  |  1991-02-27  |  983b  |  26 lines

  1. -- card: 49867 from stack: in
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 4755
  5. -- name: 
  6.  
  7.  
  8. -- part contents for background part 6
  9. ----- text -----
  10.  
  11.  
  12.  
  13. -- part contents for background part 4
  14. ----- text -----
  15. COMPOUND STATEMENTS
  16.  
  17. A group of statements enclosed in curly {} braces is a compound statement or "block".   (The closing brace should not generally be followed by a semicolon.  If it is, then the semicolon is considered a separate null statement.)  Compound statements are used for function bodies, user-defined data types, and anywhere the language syntax requires a statement as will be seen in this chapter.
  18.  
  19. In particular, a block may be NESTED within another block, and may contain declarations of variables local to the inner block.  This construct is rarely used, since creating a separate function to accomplish the processing of the inner block usually improves code readability and modularity.
  20.  
  21.  
  22.  
  23.  
  24. -- part contents for background part 7
  25. ----- text -----
  26. 154